package edu.hrbeu.crc.pojo.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;

@Data
@EqualsAndHashCode(callSuper = true)
public class BillQuery extends Query{

    private Integer userId;

    private Integer type;

    private Double startAmount;

    private Double endAmount;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate startDate;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate endDate;

    private Integer categoryId;

    private String categoryName;
}
